Unref the style when removing it from the hash table. (#314696, Benjamin
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 Oct 2005 16:23:56 +0000 (16:23 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 3 Oct 2005 16:23:56 +0000 (16:23 +0000)
2005-10-03  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
removing it from the hash table.  (#314696, Benjamin Berg)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkrc.c

index ec8e67ee219a814c65d595c158f5fb0357b48658..b519d894f6f7db3a2b27ee63cac00c70009df1e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-03  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
+       removing it from the hash table.  (#314696, Benjamin Berg)
+
 2005-10-01  Tor Lillqvist  <tml@novell.com>
 
        * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case
index ec8e67ee219a814c65d595c158f5fb0357b48658..b519d894f6f7db3a2b27ee63cac00c70009df1e8 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-03  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
+       removing it from the hash table.  (#314696, Benjamin Berg)
+
 2005-10-01  Tor Lillqvist  <tml@novell.com>
 
        * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case
index b4117b6d593f764f33f54da828156740c8a7b03c..d02f289601ef79b0392224c2a24b86bf1b308862 100644 (file)
@@ -1337,7 +1337,10 @@ gtk_rc_clear_realized_style (gpointer key,
 {
   GSList *rc_styles = key;
   GSList *tmp_list = rc_styles;
+  GtkStyle *style = value;
 
+  g_object_unref (style);
   while (tmp_list)
     {
       GtkRcStyle *rc_style = tmp_list->data;